package com.financing.wap.dao.impl;

import java.sql.SQLException;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.ILogsDao;
import com.financing.wap.dto.LogsDTO;


@Repository("logsDaoImpl")
public class LogsDaoImpl extends BaseDaoImpl<LogsDTO, Integer> implements ILogsDao {

	@SuppressWarnings("deprecation")
	public int addLog(LogsDTO logsDTO) throws SQLException {
		return (Integer) this.sqlMapClientTemplate.insert(SqlName.addLogs, logsDTO);
	}

	@Override
	public Class<LogsDTO> getEntityClass() {
		return LogsDTO.class;
	}

}
